<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  template="/WEB-INF/layouts/standard.xhtml">

  <ui:define name="menu">
    <!-- INCLUDE MENU -->
  </ui:define>

  <ui:define name="content">
    <!-- INCLUDE CONTENT -->
    <h1 class="pageTitle">Registry page</h1>
    <h:form>
      <h:commandLink action="back" title="back">
        Back to the home page
      </h:commandLink>
    </h:form>

    <br />

    <div class="doc">Praesent pharetra pretium vestibulum. Quisque
      mollis aliquet auctor. Nam justo lectus, ornare sit amet
      ullamcorper vel, mattis eget arcu. Etiam adipiscing tincidunt nisl
      vel semper. Nam laoreet dictum pretium. Aenean egestas, libero nec
      suscipit feugiat, nisl velit tempus purus, sed fermentum risus leo
      at arcu. In rutrum scelerisque elementum. Integer mollis ligula id
      metus semper id porttitor sapien auctor. Vestibulum sapien odio,
      blandit et consequat sit amet, luctus ut arcu.</div>

    <br />

    <div class="section">
      <h:form>
        <fieldset>
          <h:panelGrid columns="2">
            <h:outputLabel for="ssid">Identifiant (mail) : </h:outputLabel>
            <h:inputText id="ssid" value="#{newUser.user_id}"
              requiredMessage="Please enter your lastname" />

            <h:outputLabel for="firstName">First-Name : </h:outputLabel>
            <h:inputText id="firstName" value="#{newUser.firstName}" />

            <h:outputLabel for="lastName">Last-Name : </h:outputLabel>
            <h:inputText id="lastName" value="#{newUser.lastName}"
              required="false"
              requiredMessage="Please enter your lastname" />

            <h:outputLabel for="password">Password : </h:outputLabel>
            <h:inputSecret id="password" value="#{newUser.userPassword}"
              required="true" />

            <h:outputLabel for="password">Confirm Password : </h:outputLabel>
            <h:inputSecret id="password" value="" required="true" />
          </h:panelGrid>


          <h:commandLink action="next" title="next step">
          Next
          </h:commandLink>
        </fieldset>
      </h:form>

      <br />

      <h:form>
        <h:commandLink action="back" title="back">
        Back to the home page
      </h:commandLink>
      </h:form>
    </div>
  </ui:define>
</ui:composition>

